package com.example.springbootinterceptot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/login")
    public String login() {
        return "login!";
    }

    @RequestMapping("/reg")
    public String register() {
        return "register!";
    }

    @RequestMapping("/add")
    public int add() {
        return 8;
    }

    @RequestMapping("/num")
    public String num() {
        int a = 10/0;
        return "num";
    }


}
